const express = require('express')
const path = require('path')
const app = express()

// app.use(bodyParser.urlencoded({ extended: false }))
// app.use(bodyParser.json())
// app.use(cors())
app.set('view engine', 'pug')
app.set('views',  path.join(__dirname, './views'))
app.use('/', require('./routes'))
// app.use('/v1', session({ secret: config.session.api }), require('./routes/op'))


module.exports = app